package edu.sctu.practice.class02.renzhaoxu.test04;

/**
 * Created by Administrator on 2015/10/20.
 */
public class Number {

    private int num1;
    private  int num2;


    public Number(int num1,int num2){

        this.num1=num1;
        this.num2=num2;
    }

    public void addition(){

        int getsum = num1+num2;
        System.out.println("和"+getsum);

    }

    public  void  subtration(){


        int getsubtration = num1-num2;
        System.out.println("差"+getsubtration);
    }


    public void multiplication(){

        int getmultiplication = num1*num2;
        System.out.println("积"+getmultiplication);

    }

    public  void division(){

        int getdivsion = num1/num2;
        System.out.println("除"+getdivsion);
    }


    public static void main(String[] args) {

        Number number = new Number(4,2);

           number.addition();
            number.subtration();
            number.multiplication();
            number.division();

    }
}
